
<style>
body {
	font-family: calibri, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 17px;
}

table {
	max-width: 800px;
	width: 100%;
}

table th,table td {
	text-align: left;
}

table th {
	text-align: left;
	background-color: #f0f0f0;
	line-height: 25px;
}

table td {
	text-align: left;
}
.blue{
	color:#119ad7;
}

.black{
	color:#000;
}
.none-dec{
	text-decoration: none;
}
.light-grey {
  color: #fefefe;
}
.title{
 		font-size: 17px;
 		font-weight: bold;
}
</style>

<br>
<br>
<table>
	<tbody>
	<tr >
			<td><img src="{$DOMAIN}/images/rsgk-logo.png" />
		    </td>
		</tr>
		<tr ><td height="10"></td></tr>
		<tr >
			<td height="2" bgcolor="#b8dff3"></td>
		</tr>
		<tr ><td height="10"></td></tr>
</table>
<br>
<h1>Class list report</h1>
<br>
<br>
Instructor: <b>{$admin.admin_name} {$admin.admin_surname}</b>
<br>
Date: <b>{$day|date_format:"%A, %Y-%m-%d"}</b>
<br>
<br>
Please do your <a href="{$DOMAIN}/admin/record/attendance">attendance roll online</a>.
<br>

{foreach $data as $term}
	<br>
	<hr>
	<br>
	<h2>{$term.term_name} <small>[Week: {$term.week}]</small></h2>
	{foreach $term.classes as $class}
		<br>
		<br>
		<table cellspacing="0" cellpadding="8" border="1" width="100%">
			{assign var='cnt' value=1}
			<tr bgcolor="#eb5c24" align="left" class="bg-orange">
				<th colspan="6" style="background-color: #eb5c24;color: #fff;">{$class.class_name} [{$class.agegroup_name}]<br>{$class.location_name} </th>
			</tr>
			{if $class.enrolments}
				<tr bgcolor="#f0f0f0" align="left">
					<th width="24%">Student</th>
					<th width="10%">DOB</th>
					<th width="23%">Parent</th>
					<th width="10%">Phone</th>
					<th width="23%">Email</th>
					<th width="10%">Status</th>
				</tr>
				{foreach $class.enrolments as $enrol}
				<tr valign="top" align="left">
					<td>{$cnt++}. {$enrol.student_name} {$enrol.student_surname}</td>
					<td>{$enrol.student_dob|date_format:"%Y-%m-%d"}</td>
					<td>{$enrol.user_gname} {$enrol.user_surname}</td>
					<td><a href="tel:{$enrol.address_telephone}">{$enrol.address_telephone}</a></td>
					<td>{$enrol.user_email}</td>
					<td>{$enrol.type_name}</td>
				</tr>
			{/foreach}
			{else}
				<tr align="center">
					<td colspan="6">
						There are no enrolments.
					</td>
				</tr>
			{/if}
		</table>	
	{/foreach}
{/foreach}

<br />
<br />
<table width="100%" cellspacing="0" cellpadding="0" border="0">
	<tr>
		<td>Kind regards,<br>
		The Team at Ready Steady Go Kids<br>
		</td>
	</tr>
	<tr><td height="10"></td></tr>
		<tr><td height="10" bgcolor="#3a94d7"></td></tr>
		<tr bgcolor="#3a94d7">
		<td style="font-family: Arial, 'Helvetica Neue', 'Trebuchet MS', sans-serif; font-size:14px; color:#fff; line-height:20px; padding-left:15px; padding-right:15px;">
			{if $COMPANY.phone}P: <a href="tel:{$COMPANY.phone}" style="color:#fff; text-decoration:none;">{$COMPANY.phone}</a>{/if}
			{if $COMPANY.fax}| F: {$COMPANY.fax}{/if}<br>
		  {$COMPANY.address.street} {$COMPANY.address.suburb} {$COMPANY.address.state} {$COMPANY.address.postcode}<br>
		  <a href="{$DOMAIN}" style="color:#fff; text-decoration:none;" title="Visit our website">{$COMPANY.website}</a></td>
		</tr>
		<tr><td height="10" bgcolor="#3a94d7"></td></tr>
</table>



	





